﻿<%@ Page Language="C#" MasterPageFile="~/Admin/DonHang/MasterPageDonHang.master" AutoEventWireup="true" CodeFile="DanhSachDonHang.aspx.cs" Inherits="Admin_DanhSachDonHang" Title="Danh sách đơn hàng" %>

<%@ Register Assembly="ASPnetPagerV2_8" Namespace="ASPnetControls" TagPrefix="cc1" %>

<asp:Content ID="Content2" ContentPlaceHolderID="contentPlaceHolder" Runat="Server">

<div style="padding:12px 12px 12px 12px;">
 <div>
       
        <div class="title">
            Danh sách đơn hàng
        </div>
        <div style="width:100%;">
            <div style="display:table-cell; width:78%;float:left;">
                Tên Khách hàng: 
                <asp:TextBox ID="txt_TenKH" runat="server"></asp:TextBox>

                <asp:Button ID="btn_Search" runat="server" Text="Tìm kiếm" OnClick="btn_Search_Click" />
                      
            
            </div>
            <div class="addnewrow" style="display:table-cell; width:20%;float:right;">
                <asp:LinkButton ID="lbt_Xoa" runat="server" OnClick="lbt_Xoa_Click">Cập nhật</asp:LinkButton>
                    
            </div>        
        </div>
        <div>
        <asp:Repeater ID="Repeater1" runat="server" OnItemDataBound="Repeater1_ItemDataBound">
            <HeaderTemplate>
                <table cellspacing="1" cellpadding="3" width="100%" bgcolor="#cccccc" border="0">
                <thead>
                    <tr class="listtableheader">
                        <th>Mã đơn hàng</th>
                        <th>Tên khách hàng</th>
                        <th>Ngày đặt mua</th>
                        <th>Trị giá</th>
                        <th>Ngày giao hàng</th>
                        <th>Tình trạng giao hàng</th>
                        <th>Phương thức thanh toán</th>
                        <th>Tình trạng thanh toán</th>
                        <th>Nhân viên giao hàng</th>
                    </tr>
                </thead>
                <tbody>
            </HeaderTemplate>
            <ItemTemplate>
              <tr>
                <td><a href=ChiTietDonHang.aspx?id=<%#Eval("MaDH")%> ><%#Eval("MaDH") %></a></td>
                <td>
                    <asp:Literal ID="lit_tenKH" runat="server"></asp:Literal></td>
                <td><%#Eval("NgayDatHang") %></td>
                <td>
                   <%#Eval("TriGia") %>
                </td>
                 <td>
                   <%#Eval("NgayGiaoHang") %>
                </td>
                 <td>
                   <%#Eval("TinhTrangGH") %>
                </td>
      
                <td>
                      <%#Eval("PhuongThucThanhToan") %>
                </td>
                  <td>
                      <%#Eval("TinhTrangThanhToan") %>
                </td>
                  <td>
                      <%#Eval("NhanVienGiaoHang") %>
                </td>
              </tr>
            </ItemTemplate>
            <FooterTemplate>
                </tbody>
            </table>   
            </FooterTemplate>
        </asp:Repeater>  
        </div>
        <div style="width:100%;"> 
            <div style="float:left;">               

            </div>
       
            <cc1:PagerV2_8 ID="pager" runat="server" />
        </div>
 </div>
 </div>
</asp:Content>

